using System;

namespace UniAspect.UnityCommon.ResolutionLogging
{
    public class ConsoleResolutionLogger : IResolutionLoggerPolicy
    {
        public void LogResolutionStarted(int depth, object buildKey)
        {
            Console.WriteLine(
                    string.Format("{0}: Resolving Build Key {1}", depth, buildKey),
                    "Resolution");
        }

        public void LogResolutionCompleted(int depth, object originalBuildKey, object finalBuildKey, object result)
        {
            Console.WriteLine(
                    string.Format("{0}: Resolved Build Key {1} as Build Key {2}, object = {3}",
                                  depth, originalBuildKey, finalBuildKey, result),
                    "Resolution");
        }
    }
}